<HTML><HEAD><TITLE>fzn_search(+FznState)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(flatzinc)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>fzn_search(+FznState)</H1>
Run the search part of a FlatZinc model
<DL>
<DT><EM>FznState</EM></DT>
<DD>FlatZinc state descriptor
</DD>
</DL>
<H2>Description</H2>
<P>
	Perform the search part of a FlatZinc model, as specified in
	the model's solve-item.  The model must previously have been
	loaded successfully using fzn_load_xxx or mzn_load_xxx.
	If the solve item was 'satisfy', multiple solutions may be
	returned on backtracking.
    </P>
<H3>Modes and Determinism</H3><UL>
<LI>fzn_search(+) is nondet
</UL>
<H3>Fail Conditions</H3>
Fails if no (further) solution is found
<H2>Examples</H2>
<PRE>
    my_fzn_run_stream(ModelStream, Options) :-
	fzn_init(Options, State),
	fzn_load_stream(ModelStream, State),
	fzn_search(State),
	fzn_output(State).
</PRE>
<H2>See Also</H2>
<A HREF="../../lib_public/flatzinc/fzn_init-2.html">fzn_init / 2</A>, <A HREF="../../lib_public/flatzinc/fzn_load_stream-2.html">fzn_load_stream / 2</A>, <A HREF="../../lib_public/flatzinc/fzn_output-1.html">fzn_output / 1</A>
</BODY></HTML>
